package IC.SymbolTables.Types;

import IC.SymbolTables.Types.BasicType.BasicTypeEnum;

public class NullType extends Type {

	public boolean IsInstanceOf(Type type)
	{ 
		return type instanceof NullType
			|| type instanceof ArrayType
			|| type instanceof ClassType
			|| (type instanceof BasicType && ((BasicType)type).equals(BasicTypeEnum.STRING));
	}
	
	public String toString() { return "NullType"; }
}
